From 0afa130b1f1d18bfc62b985de9132bfa427448c1 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 15 Jul 2009 15:33:05 +0100 Subject: [PATCH] tools/check: We do need a default for ${PYTHON} as called from install.sh with PYTHON possibly undefined in the environment. So we make PYTHON=python the sensible default. Signed-off-by: Keir Fraser --- tools/check/check_python | 4 ++++ tools/check/check_python_devel | 3 +++ tools/check/check_python_xml | 3 +++ 3 files changed, 10 insertions(+) diff --git a/tools/check/check_python b/tools/check/check_python index ed7bc3652b..e9e0d04178 100755 --- a/tools/check/check_python +++ b/tools/check/check_python @@ -3,6 +3,10 @@ . ./funcs.sh +if test -z ${PYTHON}; then + PYTHON=python +fi + ${PYTHON} -c ' import sys sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2) diff --git a/tools/check/check_python_devel b/tools/check/check_python_devel index c8e0d93b2f..ee90e5da00 100755 --- a/tools/check/check_python_devel +++ b/tools/check/check_python_devel @@ -3,6 +3,9 @@ . ./funcs.sh +if test -z ${PYTHON}; then + PYTHON=python +fi has_or_fail ${PYTHON} ${PYTHON} -c ' diff --git a/tools/check/check_python_xml b/tools/check/check_python_xml index 1932cb85b6..5b14971f0f 100755 --- a/tools/check/check_python_xml +++ b/tools/check/check_python_xml @@ -3,6 +3,9 @@ . ./funcs.sh +if test -z ${PYTHON}; then + PYTHON=python +fi has_or_fail ${PYTHON} ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \ -- 2.30.2